package groovy
class Worker{
    void work(){
        println("worker work")
    }
    void writeReport(){
        println("worker writeReport")
    }
    void analyze(){
        println("worker analyze")
    }
}
class Expert{
    void analyze(){
        println("expert analyze")
    }

}
class Manager{
    @Delegate Worker worker=new Worker()
    @Delegate Expert expert=new Expert()

}
def bener=new Manager()
bener.analyze()
bener.work()
bener.writeReport()

